<template>
  <el-tabs v-model="activeName" @tab-click="handleClick" type="border-card">
    <el-tab-pane label="小区资料" name="xiaoqu">
      <community-form :currentNode="currentNode"/>
    </el-tab-pane>

    <!--<el-tab-pane label="员工资料" name="yuangong">员工资料</el-tab-pane>-->
    <el-tab-pane label="小区参数" name="xiangmu">
      <community-param  :currentNode="currentNode" />
    </el-tab-pane>
    
    <el-tab-pane label="小区地图" name="ditu">
      <building :currentNode="currentNode"></building>
    </el-tab-pane>
  </el-tabs>
</template>
<script>
  import CommunityForm from "./form";
  import building from "@/components/building/";
  import CommunityParam from "./communityParam"

  export default {
    name:'communityMain',
    components:{ CommunityForm,building,CommunityParam},
    data() {
      return {
        activeName: 'xiaoqu'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    },
    props: {
      currentNode: {
        type: Object,
        default:()=>{}
      },
    }
  };
</script>
